<!DOCTYPE html>
<html>
<head>{{template "header.html" .}}
</head>
<body>
	{{template "navbar.html" .}}
	<div id="wrap" class="container">
		{{template "flash.html" .}}
		<form class="form-horizontal" role="form"
			action='{{url "Blog.Save"  }}' method="post">
			{{with $field := field "blog.Title" .}}
			<div class="form-group">
				<label   class="col-sm-2 control-label">Titile</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" name="{{$field.Name}}"
						id="{{$field.Id}}" placeholder="Title" value="{{$field.Flash}}">
				</div>
			</div>
			{{end}} {{with $field := field "blog.KeyWords" .}}
			<div class="form-group">
				<label  class="col-sm-2 control-label">关键字</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="{{$field.Id}}"
						name="{{$field.Name}}" placeholder="关键字" value="{{$field.Flash}}">
				</div>
			</div>
			{{end}}{{with $field := field "blog.Content" .}}
			<div class="form-group">

				<div class="col-sm-6 wmd-panel pull-left">

					<div id="wmd-button-bar"></div>
					<textarea class="form-control wmd-input" rows="20" id="wmd-input"
						id="{{$field.Id}}" name="{{$field.Name}}">{{$field.Flash}}</textarea>
				</div>
				<div class="col-sm-6 wmd-panel wmd-preview pull-right"
					id="wmd-preview"></div>

			</div>
			{{end}}
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-default">提交文章</button>
				</div>
			</div>

		</form>
	</div>
	{{template "footer.html" .}}
</body>
</html>

